#ifndef _UART_H_
#define _UART_H_

#include "stdbool.h"
#include "driver_uart.h"
#include "CycleBuffer.h"


#ifdef __cplusplus
extern "C" {
#endif


#define DMA_BUFFER_SIZE (1024)
typedef struct Uart
{
    uint8_t aRXBuffer[DMA_BUFFER_SIZE];               //RX缓冲区
    uint8_t aTXBuffer[DMA_BUFFER_SIZE];               //TX缓冲区
}UartDMATransfer_t;

bool Uart_Init(void);

void Uart_Send(uint8_t *pSendData, uint16_t nSendLen);

uint16_t Uart_Read(uint8_t *pReadBuff, uint16_t nReadCount);



#ifdef __cplusplus
}
#endif

#endif  //_UART_H_





